import tableHeaderTpl from './tableHeader.html';
import tableHeaderController from './tableHeader.controller';
import './tableHeader.scss';

function tableHeader() {
  'ngInject';

  return {
    restrict: 'EA',
    templateUrl: tableHeaderTpl,
    bindToController: {
      data: '=ngModel',
      ngReadonly: '=',
      tableName: '@',
    },
    controllerAs: '$tableHeaderCtrl',
    controller: tableHeaderController,
    link(scope, iElement) {},
  };
}

export default tableHeader;
